package com.starblink.frame.app.adapter

import com.starblink.frame.app.bean.HomeItemBean
import com.starblink.frame.app.databinding.CellMainItemBinding
import com.starblink.frame.app.myinterface.MainI
import com.starblink.frame.base.adapter.BaseBindingVH

class MainCell(binding:CellMainItemBinding,
               private val mainI:MainI?) : BaseBindingVH<HomeItemBean,CellMainItemBinding>(binding) {
    override fun onBind(model: HomeItemBean, position: Int) {
        binding.tvContent.text = model.title
        binding.tvContent.setOnClickListener {
            mainI?.addHomeFragment()
        }
    }
}